import yaml

from settings.settings import Route


def read_data(file):
    """
    读取yaml文件内容
    :param file: 读取目标文件
    :return:读取的数据
    """
    f = open(file, 'r', encoding='utf-8')
    data = yaml.load(f, Loader=yaml.SafeLoader)
    return data


if __name__ == '__main__':
    files = read_data(Route().register_dataModels('dataModels_filename.yaml'))

